#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a, b, c;
	scanf("%d%d%d", &a, &b, &c);
	int i;
	a > b ? i = a, a = b, b = i : 0;
	b > c ? i = b, b = c, c = i : 0;
	a > b ? i = a, a = b, b = i : 0;
	i = 0;
	while (i<c) {
		i++;
		a% i == 0 && c % i == 0 ? a /= i, c /= i, i = 1 : 0;
	}
	printf("%d/%d", a, c);
	return 0;
}